<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var obj = {
            'name': 'zhangsan',
            'age': '30',
            "say": function(m) {
                console.log("hello" + m);
                return "说完了";
            }
        }
        console.log(obj['age']);
    </script>

</body>

</html>